Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix race condition in task deploy #19

Merged
merged 2 commits into from
Nov 8, 2023
Merged

Conversation

white-gecko
Copy link
Contributor

Executing task deploy can end up in a race condition, that the dist folder is recursively deleted while it is recreated, which ends up in a failure as can be seen below:

$ task deploy
task: [clean] rm -rf dist .mypy_cache .pytest_cache
task: [check:prepare] mkdir -p dist/coverage
rm: cannot remove 'dist': Directory not empty
task: Failed to run task "clean": exit status 1

@white-gecko white-gecko requested a review from seebi November 8, 2023 19:33
@white-gecko white-gecko changed the base branch from main to develop November 8, 2023 19:33
Copy link

github-actions bot commented Nov 8, 2023

Coverage

Coverage Report
File Stmts Miss Cover Missing
init.py 0 0 100%
transform/init.py 28 0 100%
workflow/init.py 36 2 94% 53 56
TOTAL 64 2 97%  

Tests Skipped Failures Errors Time
4 0 💤 0 ❌ 0 🔥 5.387 ⏱

@seebi seebi merged commit 4e614b4 into develop Nov 8, 2023
2 checks passed
@seebi seebi deleted the feature/fixRaceCondition branch November 8, 2023 23:15
seebi added a commit that referenced this pull request Nov 16, 2023
* Revert "Revert "add example custom icon""

This reverts commit c5368e7.

* use 4.2.0 and allow-prereleases

* adjust dependencies

* forward plugin base to 4.3.0 (cmem-cmempy >= 23.3)

* avoid safety issue 62044 for pip less than 23.3

* fix race condition in task deploy (#19)

* Execute clean and prepare sequencially in the deploy task

* restructure deps

---------

Co-authored-by: Sebastian Tramp <[email protected]>

* change log

* use poetry-dynamic-versioning option bump=true

* pylint test folder as well

* add target-version = "py311" to black

* integrate ruff (removing bandit, flake8, black and pylint)

* update README

* ruff: ignore EM*

* remove pylint gitlab job

* remove PD rules

* integrate pytest-dotenv

* update README

* fix missing check for poetry versioning plugin on build task

---------

Co-authored-by: Natanael Arndt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants